-- GENERATED SPELL FOR [Wandering Protector] --


function spell0_12836(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(11922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12836', 16500, 1)
end

function spell1_12836(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(45,pUnit)
pUnit:RegisterEvent('Sorts_12836', 560, 1)
end

function Sorts_12836(pUnit, Event)
local choix_sorts_12836 = math.random(0, 1)
if choix_sorts_12836 == 0 then
pUnit:RegisterEvent('spell0_12836', 1, 1)
end
if choix_sorts_12836 == 1 then
pUnit:RegisterEvent('spell1_12836', 1, 1)
end
end

function mob12836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12836', math.random(1500, 3000), 1)
end

function mob12836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12836, 1, 'mob12836_Action')
RegisterUnitEvent(12836, 2, 'mob12836_Leave')
RegisterUnitEvent(12836, 3, 'mob12836_Kill')
RegisterUnitEvent(12836, 4, 'mob12836_Die')
